/*
	样式集合
	版本号：20230526
 */
html,
body {
  height: 100%;
}
img {
  border: none;
  object-fit: cover;
}
dl,
li,
menu,
ol,
ul {
  list-style: none;
}
button,
input,
select,
textarea {
  outline: none;
}
/* 微信小程序按钮擦除边框 */
button::after {
  border: none;
}
a,
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}
a:hover {
  cursor: pointer;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
uni-page-body,
#app {
  height: 100%;
}

/* 页面 */
._page {
  overflow: hidden;
  position: relative;
  width: 100%;
  background-color: #ccc;
}
/* 盒模型为固定宽度 */
._box {
  box-sizing: border-box;
}
._box-400p {
  width: 400px;
  height: 400px;
}
._box-800p {
  width: 800px;
  height: 800px;
}
._box-x-200p {
  width: 200px;
}
._box-x-100p {
  width: 100px;
}
._box-x-50b {
  width: 50%;
}

/* 清除浮动 */
._clearfix::after {
  display: block;
  visibility: hidden;
  clear: both;
  height: 0;
  font-size: 0;
  content: "";
}
/* 超出边界裁剪 */
._over-hidden {
  overflow: hidden;
}

/* 盒滚动 - y轴 */
._box-scroll {
  overflow-y: scroll;
}
/* 盒滚动 - x轴 */
._box-scroll-x {
  overflow-x: scroll;
}
/* 卡片 */
._cart {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  position: relative;
  transition: 0.3s;
}
._cart:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

._active {
  border-left: 3px solid #ff770f;
  color: #ff770f;
}
._active-bottom {
  border-bottom: 3px solid #ff770f;
  color: #ff770f;
}
._active-box > *:hover {
  color: #ff770f;
}

/* 图片 */
._img {
  width: 20vw;
  height: 20vw;
  border-radius: 10px;
}
._img30 {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}
._img50 {
  width: 50px;
  height: 50px;
  border-radius: 5px;
}
._img100 {
  width: 100px;
  height: 100px;
  border-radius: 5px;
}
._img200 {
  width: 200px;
  height: 200px;
  border-radius: 5px;
}

/* 文字样式 */
._font {
  color: #aaa;
  font-size: 14px;
}
._font-mini {
  font-size: 10px;
}
._font-hint {
  font-size: 8px;
  color: red;
}
._font-reminder {
  color: #5ea3eb;
}
._font-red {
  color: red;
}
._font-green {
  color: green;
}
._font-title {
  font-size: 1.1em;
  font-weight: bold;
}
._font-price {
  font-size: 1.2em;
}
._font-price:before {
  content: "￥";
  font-size: 0.8em;
}

/* 文字 - 超出省略 */
._ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/** 强制一行 */
._nowrap {
  white-space: nowrap;
}
._line {
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
._line-1 {
  -webkit-line-clamp: 1;
}
._line-2 {
  -webkit-line-clamp: 2;
}
._line-5 {
  -webkit-line-clamp: 5;
}

/* 行高 */
._line-height-15 {
  line-height: 1.5em;
}
._line-height-20 {
  line-height: 2em;
}

/* 内容对其方式 */
._text-a-l {
  text-align: left;
}
._text-a-c {
  text-align: center;
}
._text-a-r {
  text-align: right;
}
._text-a-justify {
  text-align: justify;
}
._text-indent {
  text-indent: 2em;
}
._text-dir-y {
  writing-mode: vertical-lr;
}

/* 盒 - 填充 */
._wrapper {
  width: 100%;
  height: 100%;
}
._wrapper-x {
  width: 100%;
}
._wrapper-y {
  height: 100%;
}

/* 边框 */
._border {
  border: 1px solid #ddd;
}

/* 边框 - 圆角 */
._radius {
  border-radius: 100%;
}
._radius-15b {
  border-radius: 15%;
}
._radius-5p {
  border-radius: 5px;
}
._radius-15p {
  border-radius: 15px;
}
._radius-20p {
  border-radius: 20px;
}

/* 定位 */
._abs {
  position: absolute;
}
._fix {
  position: fixed;
}
._rel {
  position: relative;
}
._abs-c {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
._abs-c-two {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
._abs-cx {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
._abs-cy {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
._pos-wrapper {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
._abs-rt {
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(50%, -40%);
}
._abs-cb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}
._abs-btn-rb {
  position: absolute;
  bottom: 5%;
  right: 5%;
}
._abs-bottom {
  position: absolute;
  bottom: 20px;
  left: 0;
}
._abs-bottom-0 {
  position: absolute;
  bottom: 0px;
  left: 0;
}

/* 弹性布局 */
._fix-bottom {
  position: fixed;
  bottom: 20px;
  left: 0;
}
._fix-rt {
  position: fixed;
  right: 20px;
  top: 20px;
}
._fix-rb {
  position: fixed;
  right: 20px;
  bottom: 20px;
}

/* 弹性布局 */
._flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
._flex-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
._flex-wrap {
  flex-wrap: wrap;
}
._flex-start {
  justify-content: flex-start;
}
._flex-end {
  justify-content: flex-end;
}
._flex-around {
  justify-content: space-around;
}
._flex-center {
  justify-content: center;
}
._flex-a-start {
  align-items: flex-start;
}
._flex-a-end {
  align-items: flex-end;
}
._flex-a-stretch {
  align-items: stretch;
}
._flex-item-1 {
  flex: 1;
}
._flex-shrink {
  flex-shrink: 0;
}
._flex-space > * {
  margin: 3px;
}
._flex-space-10 > * {
  margin: 5px;
}
._flex-space-x > * {
  margin: 0 5px;
}
._flex-space-x > *:first-child {
  margin-left: 0;
}
._flex-space-x > *:last-child {
  margin-right: 0;
}
._flex-dis-2 > * {
  width: 50%;
}
._flex-dis-3 > * {
  width: 33%;
}
._flex-dis-5 > * {
  width: 20%;
}
._flex-dis-10 > * {
  width: 10%;
}
._flex-dis-200p > * {
  width: 200px;
}

/* 外边距 */
._m-auto {
  margin: auto;
}
._m-t-0 {
  margin-top: 0px;
}
._m-t-5 {
  margin-top: 5px;
}
._m-t-10 {
  margin-top: 10px;
}
._m-t-20 {
  margin-top: 20px;
}
._m-l-0 {
  margin-left: 0px;
}
._m-l-5 {
  margin-left: 5px;
}
._m-l-10 {
  margin-left: 10px;
}
._m-l-20 {
  margin-left: 20px;
}
._m-r-0 {
  margin-right: 0px;
}
._m-r-5 {
  margin-right: 5px;
}
._m-r-10 {
  margin-right: 10px;
}
._m-r-20 {
  margin-right: 20px;
}
._m-b-0 {
  margin-bottom: 0px;
}
._m-b-5 {
  margin-bottom: 5px;
}
._m-b-10 {
  margin-bottom: 10px;
}
._m-b-20 {
  margin-bottom: 20px;
}

/* 内边距 */
._p20 {
  padding: 20px;
}
._p10 {
  padding: 10px;
}
._p5 {
  padding: 5px;
}
._p0 {
  padding: 0;
}
._p-l-20 {
  padding-left: 20px;
}
._p-l-10 {
  padding-left: 10px;
}
._p-l-5 {
  padding-left: 5px;
}
._p-l-0 {
  padding-left: 0;
}
._p-b-0 {
  padding-bottom: 0;
}
._p-b-5 {
  padding-bottom: 5px;
}
._p-b-10 {
  padding-bottom: 10px;
}
._p-b-20 {
  padding-bottom: 20px;
}
._p-t-20 {
  padding-top: 20px;
}
._p-t-10 {
  padding-top: 10px;
}
._p-t-5 {
  padding-top: 5px;
}
._p-t-0 {
  padding-top: 0;
}
._p-r-20 {
  padding-right: 20px;
}
._p-r-10 {
  padding-right: 10px;
}
._p-r-5 {
  padding-right: 5px;
}
._p-r-0 {
  padding-right: 0;
}

/* 背景 */
._background-0 {
  background: #fff;
}
._background-1 {
  background: linear-gradient(#ff770f, #fff);
}
._background-2 {
  background: linear-gradient(to right, rgb(33, 147, 176), rgb(109, 213, 237));
}
._background-3 {
  background: linear-gradient(to right, rgb(201, 214, 255), rgb(226, 226, 226));
}
._background-4 {
  background: linear-gradient(to right, rgb(255, 239, 186), rgb(255, 255, 255));
}
._background-5 {
  background: linear-gradient(45deg, #fbda61, #ff5acd);
}
._background-an1 {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;

  @keyframes gradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
}

/* 按钮01 */
._btn {
  border-radius: 3px;
  border: none;
  outline: none;
  background: none;
}
._btn-1 {
  line-height: 30px;
  border-radius: 15px;
  color: #eee;
  font-size: 12px;
  opacity: 0.9;
  background-image: linear-gradient(to right, #599dca, #59c6ca);
}
._btn-2 {
  line-height: 30px;
  font-size: 12px;
  opacity: 0.9;
  background-color: #d5ecf9;
  color: #458ef9;
}
._btn-3 {
  line-height: 30px;
  font-size: 12px;
  opacity: 0.9;
  background-color: #fff1dd;
  color: #ff8e39;
}
._btn-mini-1 {
  line-height: 8px;
  display: inline-block;
  color: #ffc973;
  border: #ffc973 1px solid;
  font-size: 8px;
  padding: 2px 5px;
}

/* 滚动条隐藏 */
._over-scroll-hidden {
  overflow: -moz-scrollbars-none;
  -ms-overflow-style: none;
}
._over-scroll-hidden::-webkit-scrollbar {
  width: 0 !important;
}

/* 鼠标样式 */
._cursor {
  cursor: pointer;
}

/* 不可穿透点击 */
._pointer-event {
  pointer-events: none;
}

/* 过滤 */
._backdrop {
  backdrop-filter: blur(10px);
}

/* 倒影 */
._reflect {
  -webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(250, 250, 250, 0.2)));
}

/* 元素类型 - 行内元素 */
._display-ib {
  display: inline-block;
}

/* vue 元素渲染锁定 - 渲染完成前不显示 */
[v-cloak] {
  display: none;
}
